package com.yunsc.product.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.yunsc.product.dto.GoodsCategoryDTO;
import com.yunsc.product.entity.YunscGoodsCategoryEntity;
import com.yunsc.product.vo.GoodsCategoryVO;

import java.util.List;

/**
 * 商品分类表
 *
 * @author adan
 * @email 2028038953@qq.com
 * @date 2024-04-05 01:37:50
 */
public interface YunscGoodsCategoryService extends IService<YunscGoodsCategoryEntity> {


    /**
     * 查询商品分类
     * @return
     */
    List<GoodsCategoryVO> queryGoodsCategory(Integer storeId);


    /**
     * 添加商品分类
     * @param categoryDTO
     * @param storeId
     */
    void addGoodsCategory(GoodsCategoryDTO categoryDTO, Integer storeId);

    /**
     * 修改商品分类
     * @param categoryDTO
     */
    void editGoodsCategory(GoodsCategoryDTO categoryDTO);

    /**
     * 删除商品分类
     * @param categoryId
     */
    void deleteGoodsCategoryById(Integer categoryId);

    /**
     * 更新商品分类状态
     * @param categoryDTO
     * @param storeId
     */
    void updateGoodsCategoryState(GoodsCategoryDTO categoryDTO, Integer storeId);


}

